import { RouteConfig } from "vue-router";
import Layout from "@/layout/index.vue";

const workspace: RouteConfig = {
    path: "/workspace",
    component: Layout,
    redirect: "/workspace/workspaceManagement",
    name: "Workspace",
    meta: {
      title: "workspace",
      icon: "iconfont icon-userstoryicon",
      authrole: 'system_admin',
      routerRuleName: "Workspace"
    },
    children: [
      {
        path: "workspaceManagement",
        component: () => import("@/views/workspace/workspaceManagement.vue"),
        name: "workspaceManagement",
        meta: {
          title: "workspaceManage",
          noCache: true,
          authrole: 'system_admin',
          routerRuleName: "workspaceManagement"
        }
      }
    ]
  };
  
  export default workspace;